<!DOCTYPE html>
<html lang="zh-cmn-Hans"
      xmlns:th="http://www.thymeleaf.org" th:with="title= '评价'">
<head th:replace="common/head :: common_header(~{::link},~{::script})">
    <link type="text/css" rel="stylesheet"
          th:href="@{${#servletContext.getAttribute('web.static.url')}+'/starRating/css/star-rating.min.css'}"/>
    <link type="text/css" rel="stylesheet"
          th:href="@{${#servletContext.getAttribute('web.static.url')}+'/starRating/themes/krajee-fa/theme.min.css'}"/>
    <script type="text/javascript"
            th:src="@{${#servletContext.getAttribute('web.static.url')}+'/starRating/js/star-rating.min.js'}"></script>
    <script type="text/javascript"
            th:src="@{${#servletContext.getAttribute('web.static.url')}+'/starRating/themes/krajee-fa/theme.min.js'}"></script>
    <script type="text/javascript"
            th:src="@{${#servletContext.getAttribute('web.static.url')}+'/starRating/js/locales/zh.js'}"></script>
    <script type="text/javascript"
            th:src="@{${#servletContext.getAttribute('web.static.url')}+'/echarts2/dist/echarts.js'}"></script>
    <script type="text/javascript" th:src="@{/web/user/evaluate.js}"></script>
</head>
<body>
<div>
    <div class="search-bar">
        <div class="b-title-b" style="text-align: center;margin-bottom: 5px;"><p th:utext="${gnmc}"></p></div>
        <div class="search-content"
             style="width: 50%; height:300px;float: left;border-right:dashed 1px #ccc;">
            <div class="searchT-title" style="text-align: center">我的评价</div>
            <div class="search-content" style="margin-left: 10px;margin-right: 10px;overflow: auto;">
                <table width="100%" class="search" style="">
                    <tr>
                        <td width="10%" style="text-align: center">评分：</td>
                        <td width="90%"><input id="wdpf" type="number"/></td>
                    </tr>
                    <tr>
                        <td width="10%" style="text-align: center">评价：</td>
                        <td width="90%">
                            <div class="form-textarea">
                                <textarea id="wdpj" cols="30" rows="6"></textarea>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align: center">
                            <button class="button-b button-primary" type="button"
                                    onclick="savePj()"><i class="fa fa-check-circle"></i>提交评价
                            </button>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="search-content" style="width: 50%;height:300px;float: right;">
            <div class="searchT-title" style="text-align: center">历史评分</div>
            <div id="lspj_div" class="search-content" style="width: 100%;height:250px;">
            </div>
        </div>
        <div class="search-content" style="float: left;width: 100%;">
            <div class="searchT-title" style="text-align: center">历史评价</div>
            <div class="search-content">
                <table id="tt" style="width:100%;height:auto"
                       title="DataGrid - CardView" singleSelect="false" scrollbarSize="0" fitColumns="false" remoteSort="false"
                       url="" pagination="true">
                </table>
            </div>
        </div>
    </div>
</div>

<input id="gnid" type="hidden" th:value="${gnid}"/>
</body>
</html>